package com.wsir.service.impl;

import com.springmvc.annotation.Service;
import com.wsir.pojo.User;
import com.wsir.service.UserService;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Lao Wang
 * @Date 2023/11/14
 * @Description
 **/
@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<User> findUsers(String name) {
        System.out.println("查询的参数是："+name);
        List<User> users =new  ArrayList<User>();
        users.add(new User(1,"老王","111"));
        users.add(new User(1,"小王","222"));
        return users;
    }
}
